import { IRouteComponentProps } from 'umi'
import Header from "@/components/Header";
import Footer from '@/components/Footer';
import PageLayout from './page';

export default function Layout({ children, location, route, history, match }: IRouteComponentProps) {

  if (location.pathname === '/page/msgboard' || location.pathname === '/page/about') return <PageLayout children={children} location={location} route={route} routes={[]} history={history} match={match}></PageLayout>

  return <div className='wrapper'>
    <Header />
    <main>
      <div className='container'>
        {children}
      </div>
      <Footer />
    </main>
  </div>
}
